package org.jsola.hr.dto.attendschedule;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;
import java.util.List;

import static org.jsola.hr.example.AttendShiftScheduleCycleExample.E_ATTEND_PLAN_ID;
import static org.jsola.hr.example.AttendShiftScheduleCycleExample.N_ATTEND_PLAN_ID;

/**
 * @author wxz
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【考勤排班】的参数")
@Data
public class AttendScheduleSaveDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    /** 考勤班次 */
    @ApiModelProperty(notes = "考勤班次", example = "")
    @NotNull(message = "考勤班次不能为空")
    private List<AttendShiftSaveDTO> attendShiftList;

    /** 排班周期 */
    @ApiModelProperty(notes = "排班周期", example = "")
    @NotNull(message = "排班周期不能为空")
    private List<AttendCycleSaveDTO> attendCycleList;

    /** 人员排班 */
    @ApiModelProperty(notes = "人员排班", example = "")
    @NotNull(message = "人员排班不能为空")
    private List<AttendStaffScheduleDTO> attendStaffScheduleList;

}